package com.zr.qkchat.data.service;

import com.zr.qkchat.data.model.SingleMsg;
import com.zr.qkchat.data.repository.MsgRepository;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class MsgServiceImpl implements MsgService {

    @Autowired
    private MsgRepository msgRepository;

    @Override
    public List<SingleMsg> findMsgByUser(String uid) {
        return msgRepository.findMsgByUserUid(uid);
    }

}
